package com.jubaozan.feign.platform.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @author c3
 */
@Data
@ApiModel
@ToString(callSuper = true)
@EqualsAndHashCode
public class StockVO implements Serializable {
    @ApiModelProperty(hidden = true)
    private Long id;

    @NotNull(message = "数量不能为空")
    @ApiModelProperty(value = "库存数量")
    private Long quantity;

    @ApiModelProperty(value = "订阅消息回传字段", hidden = true)
    private String echo;
}
